package cn.com.blueInfo.bpm.system.entity;

import cn.com.blueInfo.bpm.common.entity.BaseExtend;
import cn.com.blueInfo.bpm.common.enums.BaseDeleted;
import cn.com.blueInfo.bpm.common.enums.BaseStatus;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 租户系统表
 * @author suxch
 * @since 2025-08-24 01:37:55
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "mc_sys_application", autoResultMap = true)
@Schema(description = "租户系统表")
public class Application extends BaseExtend {

    /** ID */
    @TableId(type = IdType.INPUT)
    @Schema(description = "ID")
    private Long id;
    /** 系统编码 */
    @Schema(description = "系统编码")
    private String appCode;
    /** 系统名称 */
    @Schema(description = "系统名称")
    private String appName;
    /** 系统描述 */
    @Schema(description = "系统描述")
    private String description;

    /** 排序码 */
    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "排序码")
    private Integer orderNumber;
    /** 域编码 */
    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "租户ID")
    private Long tenantId;
    /** 状态 */
    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "数据状态")
    private BaseStatus status;
    /** 删除状态 */
    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "删除标识")
    private BaseDeleted deleted;
    /** 删除人ID */
    @TableField(fill = FieldFill.UPDATE)
    @Schema(description = "删除人ID")
    private Long deleteUserId;
    /** 删除时间 */
    @TableField(fill = FieldFill.UPDATE)
    @Schema(description = "删除时间")
    private LocalDateTime deleteTime;
    /** 更新说明 */
    @Schema(description = "更新说明")
    private String remark;
    /** 创建人ID */
    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "创建人ID")
    private Long createUserId;
    /** 创建时间 */
    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "创建时间")
    private LocalDateTime createTime;
    /** 更新人ID */
    @TableField(fill = FieldFill.UPDATE)
    @Schema(description = "更新人ID")
    private Long updateUserId;
    /** 更新时间 */
    @TableField(fill = FieldFill.UPDATE)
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

}
